package com.study.score.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.study.common.annotation.Excel;
import com.study.common.core.domain.BaseEntity;

/**
 * 成绩查询对象 sys_score
 * 
 * @author rose
 * @date 2025-05-21
 */
public class SysScore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学号（外键） */
    private String studentId;

    /** 课程编号（外键） */
    private String courseId;

    /** 成绩（0-100分） */
    @Excel(name = "成绩", readConverterExp = "0=-100分")
    private BigDecimal score;

    /** 学期（如：2023秋） */
    @Excel(name = "学期", readConverterExp = "如=：2023秋")
    private String semester;

    public void setStudentId(String studentId) 
    {
        this.studentId = studentId;
    }

    public String getStudentId() 
    {
        return studentId;
    }

    public void setCourseId(String courseId) 
    {
        this.courseId = courseId;
    }

    public String getCourseId() 
    {
        return courseId;
    }

    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }

    public void setSemester(String semester) 
    {
        this.semester = semester;
    }

    public String getSemester() 
    {
        return semester;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("studentId", getStudentId())
            .append("courseId", getCourseId())
            .append("score", getScore())
            .append("semester", getSemester())
            .toString();
    }
}
